#include <iostream>
#include <functional>
#include <string_view>
// #include <format>

// using namespace std;

void func(int num, std::string_view str)
{
	// cout << format("func({}, {})", num, str) << endl;
	printf("func(%d, %s)\n", num, str.data());

}

int main()
{
	//function<void(int, string_view)> f1{ func };

	// With class template argument deduction
	std::function f1{ func };

	f1(1, "test");
}
